import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "goodslist",
    name: "goodslist",
    meta: [{ name: "商品列表" }],
    component: () => import("../views/goods/GoodsList.vue")
  },
  {
    path: "upsert",
    name: "upsert",
    meta: [{ name: "商品编辑" }],
    component: () => import("../views/goods/Upsert.vue")
  },
  {
    path: "goodscategory",
    name: "goodscategory",
    meta: [{ name: "商品类目" }],
    component: () => import("../views/goods/GoodsCategory.vue")
  }
];

export default routes;
